it wrong...
#include "defs.h"
#include "coldsync/palm.h"
#include "coldsync/pdb.h"
-#include "math.h"
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
static double conv = 180.0 / M_PI;
#include <stdarg.h>
#include "queue.h"
+
+/*
+ * Amazingly, this constant is not specified in the standard...
+ */
+#ifndef M_PI
+# define M_PI 3.14159265358979323846
+#endif
+
/*
* Common definitions. There should be no protocol or file-specific
* data in this file.
*/
#include <stdio.h>
-#include <math.h>
#include "defs.h"
-#ifndef M_PI
-# define M_PI 3.14159265358979323846
-#endif
-
static void crossproduct( double x1, double y1, double z1,
double x2, double y2, double z2,
double *xa, double *ya, double *za ) {
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
*/
-#include <stdio.h>
-#include <math.h>
#include "defs.h"
-#ifndef M_PI
-# define M_PI 3.14159265358979323846
-#endif
-
#define MYNAME "Polygon filter"
extern queue waypt_head;
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
*/
-#include <stdio.h>
-#include <math.h>
#include "defs.h"
#include "grtcirc.h"
#include "defs.h"
#include <ctype.h>
-#include <math.h> /* for M_PI */
#ifndef M_PI
# define M_PI 3.14159265358979323846